using Volo.Abp.Account;
using Volo.Abp.TenantManagement;

namespace Juli.Mes
{
    public static class MesDtoExtensions
    {
        private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner();

        public static void Configure()
        {
            OneTimeRunner.Run(() =>
            {
                /* You can add extension properties to DTOs
                 * defined in the depended modules.
                 *
                 * Example:
                 *
                 * ObjectExtensionManager.Instance
                 *   .AddOrUpdateProperty<IdentityRoleDto, string>("Title");
                 *
                 * See the documentation for more:
                 * https://docs.abp.io/en/abp/latest/Object-Extensions
                 */

                ObjectExtensionManager.Instance
               .AddOrUpdateProperty<string>(
                   new[]
                   {
                        typeof(TenantDto),
                        typeof(TenantCreateDto),
                        typeof(TenantUpdateDto)
                   },
                   "Description"
               );
 

            });
        }
    }
}